package com.meibao.item.api;

import com.meibao.item.pojo.SpecGroup;
import com.meibao.item.pojo.SpecParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface SpecificationAPI {
    @GetMapping("spec/params")
    List<SpecParam> queryParamList(
            @RequestParam(value = "gid",required = false)Long gid,
            @RequestParam(value = "cid",required = false)Long cid,
            @RequestParam(value = "searching",required = false) Boolean searching
    );

    // 查询规格参数组，及组内参数
    @GetMapping("spec/group")
    List<SpecGroup> queryAllByCid(@RequestParam("cid") Long cid);
}
